@import "../common/init.scss";
@import "../common/constats";
@import "../common/header";
@import "../common/body";
@import "../common/footer";
@import "course_nav.scss";

.main{
    .wrapper{
        .course-list{
            margin-top: 20px;
            // css 自动布局 flex
            display: flex;
            // 从左往右
            flex-direction: row;
            // 自动换行
            flex-wrap: wrap;
            // 自动间隔对齐
            justify-content: space-between;

            li{
                width:278px;
                height:$courseItemHeight;
                background: #ffffff;
                margin-bottom: 20px;
                a{
                    // width:100%;
                    // height:100%;
                    display: inline-block;
                    &:hover{
                    box-shadow: 0 10px 10px rgba(0,0,0,0.3);
                    }
                }

                .thumbnail-group{
                    width:100%;
                    height:$thumbnailHeight;
                    img{
                        width:100%;
                        height:100%;
                    }

                }
                .course-info{
                    padding: 16px;
                    width:100%;
                    height: $courseItemHeight - $thumbnailHeight;
                    box-sizing: border-box;
                    //background: pink;
                    position: relative;
                    .title{
                        color:$mainFontColor;
                    }
                    .author{
                        margin-top: 10px;
                        color:$assistFontColor;
                        font-size: 14px;
                    }
                    .price-group{
                        position: absolute;
                        left:16px;
                        right:16px;
                        bottom:16px;
                        text-align: right;
                        .free{
                            color:rgb(126,211,33)
                        }
                        .pay{
                            color:rgb(245,74,74)
                        }
                    }

                }
            }
        }
    }

}